﻿using System;
using System.Collections.Generic;
using System.Text;

using H2.NET.Data.Common;
using H2.NET.Data.Common.Mappings;
using H2.NET.Data.Common.Validates;

namespace H2.NET.Business
{
    [Table]
    [Serializable]
    public partial class mdc_Bom_PKG_Fini : DataObject
    {
        [ID]
        [DID]
        public string ID { get { return _ID; } set { _ID = value; EntityState.FieldChange("ID"); } }
        private string _ID;
        public static FieldInfo id = new FieldInfo("mdc_Bom_PKG_Fini", "ID");

        [Column]
        public string Process { get { return _Process; } set { _Process = value; EntityState.FieldChange("Process"); } }
        private string _Process;
        public static FieldInfo process = new FieldInfo("mdc_Bom_PKG_Fini", "Process");

        [Column]
        public int Incident { get { return _Incident; } set { _Incident = value; EntityState.FieldChange("Incident"); } }
        private int _Incident;
        public static FieldInfo incident = new FieldInfo("mdc_Bom_PKG_Fini", "Incident");

        [Column]
        public string UserName { get { return _UserName; } set { _UserName = value; EntityState.FieldChange("UserName"); } }
        private string _UserName;
        public static FieldInfo userName = new FieldInfo("mdc_Bom_PKG_Fini", "UserName");

        [Column]
        public int No { get { return _No; } set { _No = value; EntityState.FieldChange("No"); } }
        private int _No;
        public static FieldInfo no = new FieldInfo("mdc_Bom_PKG_Fini", "No");

        [Column]
        public string FINI_Code { get { return _FINI_Code; } set { _FINI_Code = value; EntityState.FieldChange("FINI_Code"); } } 
        private string _FINI_Code;
        public static FieldInfo fINI_Code = new FieldInfo("mdc_Bom_PKG_Fini", "FINI_Code");

        [Column]
        public string Plant { get { return _Plant; } set { _Plant = value; EntityState.FieldChange("Plant"); } }
        private string _Plant = "K15P";
        public static FieldInfo plant = new FieldInfo("mdc_Bom_PKG_Fini", "Plant");

        [Column]
        public string FINI_Code_Q { get { return _FINI_Code_Q; } set { _FINI_Code_Q = value; EntityState.FieldChange("FINI_Code_Q"); } } 
        private string _FINI_Code_Q;
        public static FieldInfo fINI_Code_Q = new FieldInfo("mdc_Bom_PKG_Fini", "FINI_Code_Q");

        [Column]
        public string Packager1 { get { return _Packager1; } set { _Packager1 = value; EntityState.FieldChange("Packager1"); } } 
        private string _Packager1;
        public static FieldInfo packager1 = new FieldInfo("mdc_Bom_PKG_Fini", "Packager1");

        [Column]
        public string Packager1_Q { get { return _Packager1_Q; } set { _Packager1_Q = value; EntityState.FieldChange("Packager1_Q"); } } 
        private string _Packager1_Q;
        public static FieldInfo packager1_Q = new FieldInfo("mdc_Bom_PKG_Fini", "Packager1_Q");

        [Column]
        public string Packager2 { get { return _Packager2; } set { _Packager2 = value; EntityState.FieldChange("Packager2"); } } 
        private string _Packager2;
        public static FieldInfo packager2 = new FieldInfo("mdc_Bom_PKG_Fini", "Packager2");

        [Column]
        public string Packager2_Q { get { return _Packager2_Q; } set { _Packager2_Q = value; EntityState.FieldChange("Packager2_Q"); } } 
        private string _Packager2_Q;
        public static FieldInfo packager2_Q = new FieldInfo("mdc_Bom_PKG_Fini", "Packager2_Q");

        [Column]
        public string Carton_Cover1 { get { return _Carton_Cover1; } set { _Carton_Cover1 = value; EntityState.FieldChange("Carton_Cover1"); } } 
        private string _Carton_Cover1;
        public static FieldInfo carton_Cover1 = new FieldInfo("mdc_Bom_PKG_Fini", "Carton_Cover1");

        [Column]
        public string Carton_Cover1_Q { get { return _Carton_Cover1_Q; } set { _Carton_Cover1_Q = value; EntityState.FieldChange("Carton_Cover1_Q"); } } 
        private string _Carton_Cover1_Q;
        public static FieldInfo carton_Cover1_Q = new FieldInfo("mdc_Bom_PKG_Fini", "Carton_Cover1_Q");

        [Column]
        public string Carton_Cover2 { get { return _Carton_Cover2; } set { _Carton_Cover2 = value; EntityState.FieldChange("Carton_Cover2"); } } 
        private string _Carton_Cover2;
        public static FieldInfo carton_Cover2 = new FieldInfo("mdc_Bom_PKG_Fini", "Carton_Cover2");

        [Column]
        public string Carton_Cover2_Q { get { return _Carton_Cover2_Q; } set { _Carton_Cover2_Q = value; EntityState.FieldChange("Carton_Cover2_Q"); } } 
        private string _Carton_Cover2_Q;
        public static FieldInfo carton_Cover2_Q = new FieldInfo("mdc_Bom_PKG_Fini", "Carton_Cover2_Q");

        [Column]
        public string Tagboard1 { get { return _Tagboard1; } set { _Tagboard1 = value; EntityState.FieldChange("Tagboard1"); } } 
        private string _Tagboard1;
        public static FieldInfo tagboard1 = new FieldInfo("mdc_Bom_PKG_Fini", "Tagboard1");

        [Column]
        public string Tagboard1_Q { get { return _Tagboard1_Q; } set { _Tagboard1_Q = value; EntityState.FieldChange("Tagboard1_Q"); } } 
        private string _Tagboard1_Q;
        public static FieldInfo tagboard1_Q = new FieldInfo("mdc_Bom_PKG_Fini", "Tagboard1_Q");

        [Column]
        public string Tagboard2 { get { return _Tagboard2; } set { _Tagboard2 = value; EntityState.FieldChange("Tagboard2"); } } 
        private string _Tagboard2;
        public static FieldInfo tagboard2 = new FieldInfo("mdc_Bom_PKG_Fini", "Tagboard2");

        [Column]
        public string Tagboard2_Q { get { return _Tagboard2_Q; } set { _Tagboard2_Q = value; EntityState.FieldChange("Tagboard2_Q"); } } 
        private string _Tagboard2_Q;
        public static FieldInfo tagboard2_Q = new FieldInfo("mdc_Bom_PKG_Fini", "Tagboard2_Q");

        [Column]
        public string Filter_bag { get { return _Filter_bag; } set { _Filter_bag = value; EntityState.FieldChange("Filter_bag"); } } 
        private string _Filter_bag;
        public static FieldInfo filter_bag = new FieldInfo("mdc_Bom_PKG_Fini", "Filter_bag");

        [Column]
        public string Filter_bag_Q { get { return _Filter_bag_Q; } set { _Filter_bag_Q = value; EntityState.FieldChange("Filter_bag_Q"); } } 
        private string _Filter_bag_Q;
        public static FieldInfo filter_bag_Q = new FieldInfo("mdc_Bom_PKG_Fini", "Filter_bag_Q");

        [Column]
        public string Remark { get { return _Remark; } set { _Remark = value; EntityState.FieldChange("Remark"); } }
        private string _Remark;
        public static FieldInfo remark = new FieldInfo("mdc_Bom_PKG_Fini", "_Remark");

        [Column]
        [NowDate]
        public DateTime Time { get { return _Time; } set { _Time = value; EntityState.FieldChange("Time"); } }
        private DateTime _Time;
        public static FieldInfo time = new FieldInfo("mdc_Bom_PKG_Fini", "Time");

        [Column]
        [DefaultInt(0)]
        public int Status { get { return _Status; } set { _Status = value; EntityState.FieldChange("Status"); } }
        private int _Status;
        public static FieldInfo status = new FieldInfo("mdc_Bom_PKG_Fini", "Status");
    }
}
